package com.qzw.demo.service;

import com.qzw.utils.mysql.generator.Generator;

/**
 * @author: 屈子威
 * @create: 2020-07-14
 * @description: 代码生成
 **/
public class DemoGenerator {

    public static void main(String[] args) throws Exception {
        Generator generator = new Generator("com.qzw.demo.service.entity");
        generator.setEntityPrefix("Dm");
        generator.setDaoInit("com.qzw.demo.service.dao","/src/main/java/");
        generator.setModelInit("com.qzw.demo.api.model", "/../api/src/main/java/");
        generator.setServiceInit("com.qzw.demo.api.service", "/../api/src/main/java/");
        generator.setServiceImplInit("com.qzw.demo.service.service.impl", "/src/main/java/");
        generator.setQueryInit("com.qzw.demo.api.query", "/../api/src/main/java/");
        generator.generator();
    }

}
